<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateWechatRepliesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('wechat_replies', function (Blueprint $table) {
            $table->id()->comment('微信关键字回复表');
            $table->string('type',32)->comment('回复类型');
            $table->text('content',255)->comment('回复内容');
            $table->tinyInteger('status')->default(1)->comment('状态 0不可用,1可用');
            $table->tinyInteger('hide')->default(1)->comment('是否影藏:0隐藏,1显示');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('wechat_replies');
    }
}
